<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$_title}</h2>
    </div>
    <notempty name="taskType" >
    	<form action="{:U('Task/editTaskType')}" method="post" class="form-horizontal">
    <else />
	    <form action="{:U('Task/addTaskType')}" method="post" class="form-horizontal">
    </notempty>
    	<notempty name="taskType">
    		<input type="hidden" name="id" value="{$taskType.id}" />
    	</notempty>
        <div class="form-item">
            <label class="item-label">Task Type Code<span class="check-tips">（Task Type Code作为任务类型的唯一标识，只能包括字母、数字和下划下，修改此项请三思！！！）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="code" value="{$taskType.code|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">Task Type Name<span class="check-tips">（任务类型名称，可以包括中文，至少2个字符）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$taskType.name|default=''}">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Task/taskTypeList')}');
    </script>
</block>
